package exercise2.copy;

import java.util.Random;

public class Client
{
	int arraySize = 0;

	private class ClientThread
	{
		int[] unsortedList;
		
		
		public void run() 
		{
			unsortedList = new int[arraySize];
			
			for(int i = 0; i < arraySize; i++)
				unsortedList[i] = new Random().nextInt();
			
			/*********************
			/* call server here  *
			 *********************/
				
			/*********************
			/* do your own stuff *
			 *********************/
				
			String output = "";
				
			for(int i = 0; i < 10 && i < unsortedList.length; i++)
				output += unsortedList[i] + "\n";
			output += "...";
				
			GUI.showMessageDialog("Die Liste des Threads " + Thread.currentThread().getName() + " wurde sortiert:\n" + output);			
		}
	}
}
